<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天高智慧</title>
<link href="./res/style/main.css" rel="stylesheet" type="text/css" />
<link href="./res/style/index.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="./res/script/jquery-1.4.2.min.js"></script>
<script>
// 验证码切换
function verify_image_refresh(obj) {
    obj.attr('src','?app=common&mod=verify&rand='+Math.random());
}
$(function(){
    $('#verify').click(function(){
        verify_image_refresh($(this));
    });
    $('#verify').click();
    $('input[cancel]').click(function(){
        window.opener = null;
        window.open('','_self');
        window.close();
    });
    $('input[name=username]').focus();
});
</script>
</head>
<style>
body{background:url(./res/image/login_bg.gif) top repeat-x;}
</style>

<body>
<div class="login">
      <form action="?app=auth&mod=signin" method="post" >
      <?php if($this->message): ?>
      <div class="form_div1" style="color:red"><span class="span1">错误代码：</span><span><?php echo $this->message; ?></span></div>
      <?php endif; ?>
      <div class="form_div1">
           <span class="span1">用户名：</span>
           <span><input name="username" type="text" class="input1" /></span>
      </div>
      <div class="form_div1">
           <span class="span1">密码：</span>
           <span><input name="password" type="password" class="input1" /></span>
      </div>
      <div class="form_div1">
           <span class="span1">验证码：</span>
           <span><input name="verify" type="text" class="input1 input2" /></span>
           <span><img verify src="" id='verify' width="48" height="25" title="看不清楚？点击图片更换验证码"/></span>
      </div>
      <div class="form_div1">
           <span class="span1"></span>
           <span><input type="hidden" name="formhash" value="<?php echo FORMHASH; ?>" /><input type="hidden" name="redirect_to" value="<?php echo $this->redirect_to; ?>" /><input name="" type="submit" class="btn1" value="登录" /><input name="" type="button" cancel class="btn1" value="取消" /></span>
      </div></form>
</div>
</body>
</html>
